import instance from "."

// 查询订单
export const getOrderList = (params: IOrderParamsType): IPR<IgetListRes<OrderList>> => instance.get("order/list", { params })

// 批量发货
interface IOrderdeliveryParamListType {
    deliveryParamList: string
}
export const postOrderUpdateDelivery = (params: IOrderdeliveryParamListType) => instance.post("/order/update/delivery", { params })

// 订单设置
export const getOrderSetting = (params: { id: number }): IPR<IgetOrderRes> => instance.get("/orderSetting/" + params.id)

// 修改指定订单设置
export const postOrderSettingUpdate = (params: IOrderSettingUpdateType): IPR<string> => instance.post("orderSetting/update/" + params.id, { params })